<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../js/jquery/1.x/jquery.js"></script>
    <script src="../layui/layui.js" charset="utf-8"></script>
    <script src="../js/config.js"></script>
    <script src="../js/function.js"></script>
</head>
<body>
<div>
    <a href="javascript:;" class="test-btn">Test</a>
</div>
</body>
<script>
    //测试
    $('.test-btn').click(function(){
        console.log('测试API');
        var params = {};
        ajax_get(configUrl.testUrl,params,(res)=>{
            console.log(res);
        });
    })
</script>
</html>